﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinFormsApp1
{
    public partial class SettingsForm : Form
    {
        public int ExpandLevel { get; private set; }
        public SettingsForm()
        {
            InitializeComponent();
            numericUpDown1.Minimum = 1; // 最小展开层级为1
            numericUpDown1.Maximum = 10; // 假设最大展开层级为10，可以根据需要调整
            numericUpDown1.Value = 1; // 默认展开层级为1
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            ExpandLevel = (int)numericUpDown1.Value;
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
    }
}
